@import "~antd/dist/antd.css";

html, body {
  background-color: #fff;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.App {
  height: 100%;
  width: 100%;
  user-select: none;
}

.app-status {
  padding: 0.5em;
  width: 100%;  
}

.app-status .ant-form-item {
  z-index: 10;
}

.app-page {
  overflow-y: auto;
  height: calc(100% - 38px);
  padding: 20px;
}

.controller {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.camera-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}


.controller-form {
  padding: 0.5em;
}

.controller-form .ant-form-item {
  z-index:10;
}

.direction-slider {
  position: fixed;
  width: 50vh;
  bottom: 48vh;
  right: 4vw;
  z-index: 10;
}

.speed-slider {
  position: fixed;
  height: 50vh;
  bottom: 25vh;
  left: 10vw;
  width: 10vh;
  z-index: 10;
}

.speed-slider .ant-slider-rail {
  width: 8vh;
  opacity: 0.3;
  border-radius: 4vh;
}
.speed-slider .ant-slider-handle {
  margin-left: -1vh;
}

.direction-slider .ant-slider-rail {
  height: 8vh;
  opacity: 0.3;
  border-radius: 4vh;
}
.direction-slider .ant-slider-handle {
  margin-top: -1vh;
}

.speed-slider .ant-slider-handle,
.direction-slider .ant-slider-handle {
  width: 10vh;
  height: 10vh;
  /* transition: all 0.036s cubic-bezier(0.78, 0.14, 0.15, 0.86); */
}



.controller-form .backward-button,
.controller-form .left-button,
.controller-form .forward-button,
.controller-form .right-button {
  width: 8vw;
  height: 8vw;
  min-width: 3em;
  min-height: 3em;
}



.ai {
  height: 80vh;
  overflow: auto;
}
.ai-sample {
  padding: 0.5em;
}

.ai-sample-form {
  margin-bottom: 50vh;
}

.ai-example-list {
  padding: 0.5em;
  text-align: center;
}

.ai-train {
  padding: 0.5em;
}

.ai-object-detection-canvas-container {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: flex;
}
.ai-object-detection-canvas-container canvas {
  flex: 1;
  object-fit: contain;
  max-width: 100%;
}

.player-box {
  display: flex;
  transition: all 0.36s cubic-bezier(0.78, 0.14, 0.15, 0.86);
  flex-grow: 1;
  flex-shrink: 1;
}
.camera-rnd {
  border: 2px solid #1890ff;
  /* overflow: hidden; */
}
.camera-rnd.disabled {
  border: none;
}

.camera-rnd .button-box {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 99;
  transform: translate(-50%, -50%);
}
.camera-rnd .edit {
  position: absolute;
  right: 0.5em;
  z-index: 99;
  top: 50%;
  transform: translate(0, -50%);
  /* opacity: 0.5; */
}
.camera-rnd .edit button{
  margin-bottom: 0.5em;
}

.camera-rnd .button-box button {
  margin-right: 0.5em;
  margin-bottom: 0.5em;
}

.camera-box {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  /* align-items: center; */
}
.camera-box canvas {
  object-fit: contain;
  max-width: 100%;
  /* max-height: 100%; */
  flex-grow: 1;
  flex-shrink: 1;
}

.inline-form .ant-form-item {
  margin-bottom: 0.5em;
}

.transition-animation {
  transition: all 0.36s cubic-bezier(0.78, 0.14, 0.15, 0.86);
}

.select-disabled {
  user-select:none; 
}

.record-button {
  position: fixed;
  right: 5vw;
  bottom: 5vw;
}
.recording-img {
  width: 10vw;
}